package com.yandadeyu.springBoot.dao.impl;

import com.yandadeyu.springBoot.dao.RedisDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

@Service
public class RedisDAOimpl implements RedisDAO {
    @Autowired
    RedisTemplate redisTemplate;

    @Override
    public void setKey(String key, Object value) {
        redisTemplate.opsForValue().set(key,value);
    }

    @Override
    public String getValueByKey(String key) {
/*
       return redisTemplate.opsForValue().get(key);
*/
          return null;
    }

    @Override
    public void  deleteKey(String key) {
    }
}
